<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="moduleTitle" class="tl-dialog" :close-on-click-modal="false" width="1200px" @close="close" @open="open" :append-to-body="true" :modal-append-to-body="true">
    <file-list ref="fileList" type="list" :category="category"></file-list>
    <div slot="footer" class="dialog-footer"></div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_edit } from "@tapui/mixins/mixin_edit"
/** 子组件 */
import fileList from "./list"
/** 工具类 */
import { putAction, getAction, postAction, deleteAction } from "@tapui/utils/http"
/** VUE配置 */
export default {
  mixins: [mixin_edit],
  components: { fileList },
  data() {
    return {
      moduleTitle: "文档管理",
      urlPrefix: "/base/processDocumentInfo/",
      url: {
        // 额外的url
      },
      sorterInfo: {
        sidx: "createon",
        sord: "desc"
      }
    }
  },
  props: {
    category: {
      default: '',
      type: String
    }
  },
  methods: {
    open() {
      this.$nextTick(_ => {
        this.$refs.fileList.doQuery()
      })
    },
    loaded() {}
  }
}
</script>
